---
title: Resonance Audio Unity SDK API Reference
layout: default
exclude_from_menu: true
---
<!DOCTYPE html>
<html devsite>
<head>
  <title>ResonanceAudioRoomManager.SurfaceMaterialDictionary Class Reference</title>
  <link rel="stylesheet" href="/resonance-audio/css/default.css"/>
</head>
<body><div id="top"><!-- do not remove this div --></div><h1>ResonanceAudioRoomManager.<wbr/>SurfaceMaterialDictionary</h1><p>A serializable dictionary class that maps surface materials from GUIDs. </p><h2>Summary</h2><p>The dictionary is serialized to two lists, one for the keys (GUIDs) and one for the values (surface materials). </p><h3>Inheritance</h3>Inherits from: Dictionary< string, SurfaceMaterial >, ISerializationCallbackReceiver<table class="constructors responsive">
    <tr>
      <th colspan="2">
        <h3>Constructors and Destructors</h3>
      </th>
    </tr>
    <tr>
      <td colspan="2">
        <code><a href="#class_resonance_audio_room_manager_1_1_surface_material_dictionary_1a2ecb594fd80bcf68ce3d3c5c33f73fb4">SurfaceMaterialDictionary</a>()</code>
        <br />
      </td>
    </tr>
  </table><table class="methods responsive">
    <tr>
      <th colspan="2">
        <h3>Public functions</h3>
      </th>
    </tr>
    <tr>
      <td>
        <code><a href="#class_resonance_audio_room_manager_1_1_surface_material_dictionary_1a95688678e7ce88a171f4c8240f3172e0">OnAfterDeserialize</a>()</code>
      </td>
      <td>
        <div>
          <code>void</code>
        </div>
        <div>Deserializes the two lists and fills the dictionary. </div>
      </td>
    </tr>
    <tr>
      <td>
        <code><a href="#class_resonance_audio_room_manager_1_1_surface_material_dictionary_1a0c02ea78432062ab83d7118bc085e8eb">OnBeforeSerialize</a>()</code>
      </td>
      <td>
        <div>
          <code>void</code>
        </div>
        <div>Serializes the dictionary to two lists. </div>
      </td>
    </tr>
  </table><h2>Public functions</h2><div id="class_resonance_audio_room_manager_1_1_surface_material_dictionary_1a95688678e7ce88a171f4c8240f3172e0">
    <h3>OnAfterDeserialize</h3>
    <pre class="prettyprint">void OnAfterDeserialize()</pre>
    <div>
      <p>Deserializes the two lists and fills the dictionary. </p>
    </div>
  </div><div id="class_resonance_audio_room_manager_1_1_surface_material_dictionary_1a0c02ea78432062ab83d7118bc085e8eb">
    <h3>OnBeforeSerialize</h3>
    <pre class="prettyprint">void OnBeforeSerialize()</pre>
    <div>
      <p>Serializes the dictionary to two lists. </p>
    </div>
  </div><div id="class_resonance_audio_room_manager_1_1_surface_material_dictionary_1a2ecb594fd80bcf68ce3d3c5c33f73fb4">
    <h3>SurfaceMaterialDictionary</h3>
    <pre class="prettyprint"> SurfaceMaterialDictionary()</pre>
    <div />
  </div></body>
</html>
